*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: #333;
}
.navigation{
    width: 80px;
    position: absolute;
    left: 20px;
    top: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    /* 侧轴起点对其 */
    align-items: flex-start;
    border-radius: 10px;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.05);
    transition: all 0.5s;
    overflow: hidden;
}
.navigation.active{
    width: 400px;
    transition: all 0.5s;
}
.navigation .menu_toggle{
    position: relative;
    width: 80px;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navigation .menu_toggle::before{
    content: "";
    position: absolute;
    width: 35px;
    height: 2px;
    background: #333;
    transform: translateY(-10px);
    transition: all 0.5s;
}
.navigation .menu_toggle::after{
    content: "";
    position: absolute;
    width: 35px;
    height: 2px;
    background: #333;
    transform: translateY(10px);
    transition: all 0.5s;
    /* 增加倒影 */
    box-shadow: 0 -10px #333;
}
.navigation.active .menu_toggle::before{
    transform: translateY(0px) rotate(45deg);
    transition: all 0.5s;
}
.navigation.active .menu_toggle::after{
    transform: translateY(0px) rotate(-45deg);
    /* 去掉倒影 */
    box-shadow: 0 0 #333;
    transition: all 0.5s;
}

.navigation .profile{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 0 10px;
    width: 100%;
}
.navigation .profile .imgBx{
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
    transition: all 0.5s;
    border-radius: 50%;
}
.navigation.active .profile .imgBx{
    width: 200px;
    height: 200px;
}
.navigation .profile .imgBx img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fit;
}

.navigation .menu{
    position: relative;
    width: 100%;
    padding: 10px;
    transition: all 0.5s;
    border-top: 1px solid rgba(0,0,0,0.09);
}
.navigation.active .menu{
    padding: 10px 20px;
}

.navigation .menu li{
    list-style: none;
}
.navigation .menu li a{
    position: relative;
    display: flex;
    text-decoration: none;
    color: #111;
    border-radius: 10px;
}

.navigation .menu li a:hover{
    background: #0084ff;
    color: #fff;
}
.navigation .menu li a .icon{
    position: relative;
    min-width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
}

.navigation .menu li a .text{
    position: relative;
    height: 60px;
    padding-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}